@import "./HoverBox.module.scss";
@import "../../../../styles/css-variables";

.root {
  display: flex;
  flex-direction: column;
  pointer-events: all;
  animation: slideUpAndFade 0.3s;
  transform: translate3d(0, 0, 0);
}

@keyframes slideUpAndFade {
  from {
    transform: translate3d(0, 4px, 0);
    opacity: 0;
  }
}

.visualHint {
  height: 3px;
  width: 50px;
  max-width: calc(100% - 30px);
  margin-left: 10px;
  background: $selectionControlsColor;
  filter: brightness(0.8);
  margin-bottom: 1px;
}

.stackItem {
  display: inline-block;
  margin-right: auto;
  white-space: nowrap;
  color: white;
  padding: 2px 8px 2px 6px;
  border-radius: 3px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 2px;
  font-size: 10px;

  &:hover .stackItemBackground {
    filter: hue-rotate(180deg) !important;
  }
}

.stackItemBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
